home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 10
/
Amoszine 10 (Disk 3 of 3).adf
/
Amos_Procs.lha
/
YesNo.proc
/
YesNo.amosSourceCode
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
AMOS Source Code
|
1991-12-03
|
281 b
|
15 lines
Procedure YESNO
' By John Smit
' Waits for a 'Y' or an 'N' to be input
' value returned in param$
'
Z$=""
Repeat
Z$=Inkey$
Z$=Upper$(Z$)
Until Asc(Z$)=78 or Asc(Z$)=89
End Proc[Z$]
'
' example
YESNO
If Param$="Y" Then Print "YES" Else Print "NO"